<template>
  <div>
    <div v-for="i in 10">
      <popover
        placement="top"
        style="margin: 50px;"
        @on-show="onShow"
        @on-hide="onHide"
      >
        <div slot="content" class="popover-demo-content">
          hello world
        </div>
        <button class="btn btn-default">点击</button>
      </popover>
    </div>
  </div>
</template>

<script>
import { Popover } from "vux";
export default {
  name: "",
  props: {},
  components: {
    Popover
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {
    onShow() {
      console.log("on show");
    },
    onHide() {
      console.log("on hide");
    }
  },
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {}
};
</script>

<style lang="less" scoped>
.popover-demo-content {
  padding: 5px 10px;
}
</style>
